    <link rel="stylesheet" media="screen" type="text/css" title="Inscr_Css" href="_css/Admin.css" />
<div id="main">
 	<p>
 	<a href="<?php echo ABS_PATH.ROOT; ?>?page=Admin/Gestion&fct=Admin/Gestion&idtab=produit">Produits</a><br />
 	<a href="<?php echo ABS_PATH.ROOT; ?>?page=Admin/Gestion&fct=Admin/Gestion&idtab=commande">Commandes</a><br />
 	<a href="<?php echo ABS_PATH.ROOT; ?>?page=Admin/Gestion&fct=Admin/Gestion&idtab=client">Clients</a><br />
 	<a href="<?php echo ABS_PATH.ROOT; ?>?page=Admin/Gestion&fct=Admin/Gestion&idtab=identification">Liste des identifiants</a><br />
 	</p>
 	<?php if (isset($_GET['idtab']) && !empty($_GET['idtab'])) {?>
 	<form method='get' action="<?php echo ABS_PATH.ROOT; ?>">
 		<input type="submit" value="Afficher :"/><input class="champstxt" type="text" name="end" value="<?php echo $end; ?>" /> lignes a partir de l'enregistrement <input class="champstxt" type="text" name="start" value="<?php echo $start; ?>"/>
 		page(s) : <select name="numpage" onchange="javascript:this.form.submit();">
 			<?php while ($nb_page) 
 				{ ?>
 					<option value="<?php echo $value; ?>" <?php if ($numpage == $value) echo 'selected="selected"'; ?>><?php echo $value; ?></option>
 					<?php $nb_page--;
 					$value++;
 				}?>
 		</select>
 		<input type="hidden" name="page" value="Admin/Gestion"/>
 		<input type="hidden" name="fct" value="Admin/Gestion"/>
 		<input type="hidden" name="idtab" value="<?php echo $_GET['idtab']?>"/>
 		<?php if (isset($ordre) && isset($_GET['tri'])) { ?>
 		<input type="hidden" name="tri" value="<?php echo $_GET['tri']; ?>"/>
 		<input type="hidden" name="ordre" value="<?php echo $ordre; ?>"/>
 		<?php } ?>
 	</form>
 	<?php if (isset($rows) && $rows > 0) { ?>
 	<form method='post' action="<?php echo ABS_PATH.ROOT; ?>?page=Admin/Gestion&fct=Admin/GestAction&action=delete&idtab=<?php echo $_GET['idtab'] ?>">
	 	<table >
	 	<tr>
	 		<th><INPUT src="_gfx/icons/cross.png" type="image" Value="submit" name="Suppr" title="Supprimer"/></th>
	 		<th>Edit</th>
	 		<?php foreach($array[0] AS $title => $buff) { ?>
	 			<th><a href="<?php echo ABS_PATH.ROOT; ?>?page=Admin/Gestion&fct=Admin/Gestion&start=<?php echo $start; ?>&end=<?php echo $end; ?>&idtab=<?php echo $_GET['idtab']?>&tri=<?php echo $title; if(isset($_GET['tri'])) { echo '&cmp='.$_GET['tri']; } if(isset($ordre)) { echo '&ordre='.$ordre; } ?>"><?php echo $title ?></a> </th>
	 		<?php } ?> 
	 	</tr>
	 	<?php foreach($array AS $rows => $buff) { ?>
	 	<tr>
	 		<td>
	 			<input type="checkbox" name="Check[]" value="<?php $tab = array_keys($buff); echo $buff[$tab[0]]; ?>"/>
	 			<input type="hidden" readonly name="id" value="<?php echo $tab[0]; ?>" />
	 		</td>
	 		<td><a href="<?php echo ROOT; ?>?page=Admin/GestAction&fct=Admin/GestAction&action=editer&idtab=<?php echo $_GET['idtab']; ?>&val=<?php echo $buff[$tab[0]]; ?>&id=<?php echo $tab[0]; ?>"><img src="_gfx/icons/edit.png"  alt="404" border="0" title="Modifier"/></a></td>	
	 		<?php foreach($buff AS $cols) { ?>
	 		<td> <?php if ($_GET['idtab'] == "identification" && $cols == "N") { ?><a href="<?php echo ABS_PATH.ROOT; ?>?page=Admin/Gestion&fct=Admin/GestAction&action=valinscr&id=<?php echo $buff['GLN']; ?>">Valider</a> <?php } else { echo $cols; } ?> </td> <?php } ?>
	 	</tr>
	 	<?php } ?>
	 	</table> 
	 </form>
 	<?php } ?>
 	<input type="button" value="Ajouter" onClick="window.location.href ='<?php echo ABS_PATH.ROOT; ?>?page=Admin/GestAction&fct=Admin/GestAction&action=ajouter&idtab=<?php echo $_GET['idtab']; ?>'"/>
 			<?php } ?>
 </div>